package com.ftg.product.exam.dto;

import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.ftg.product.exam.entity.PaperRuleDetail;
import com.ftg.product.exam.entity.PaperRule;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* 试卷规则明细表，试卷里面的明确规则，如：有哪些大题，每个多少分。 DTO定义
* @author kangjx
* @version 1.0
* @date 2021-01-14
 * Copyright © ftg
*/
@Getter @Setter @Accessors(chain = true)
public class PaperRuleDetailDTO extends PaperRuleDetail  {
    private static final long serialVersionUID = -5643962878413518848L;

    /**
    * 关联字段 PaperRule.rulename
    */
    @BindQuery(comparison = Comparison.EQ, entity = PaperRule.class, field = "rulename", condition = "this.rulecode=id")
    private String rulecodeRulename;
}